package com.example.hxds.bff.customer.feign;

import com.example.hxds.bff.customer.controller.form.*;
import com.example.hxds.common.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @program: hxds
 * @description: feign代理Cst-乘客微服务的相关接口
 * @author: noah2021
 * @date: 2023-01-14 01:01
 **/
@FeignClient(value = "hxds-cst")
public interface CstServiceApi {

    /**
     * 注册新乘客
     * @param form
     * @return
     */
    @PostMapping("/customer/registerNewCustomer")
    R registerNewCustomer(RegisterNewCustomerForm form);

    /**
     * 乘客登录
     * @param form
     * @return
     */
    @PostMapping("/customer/login")
    R login(LoginForm form);

    /**
     * 添加乘客车辆信息
     * @param form
     * @return
     */
    @PostMapping("/customer/car/insertCustomerCar")
    R insertCustomerCar(InsertCustomerCarForm form);

    /**
     * 查询乘客车辆信息
     * @param form
     * @return
     */
    @PostMapping("/customer/car/searchCustomerCarList")
    R searchCustomerCarList(SearchCustomerCarListForm form);


    /**
     * 删除乘客车辆信息
     * @param form
     * @return
     */
    @PostMapping("/customer/car/deleteCustomerCarById")
    R deleteCustomerCarById(DeleteCustomerCarByIdForm form);
}
